package com.jy.admin.db.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.jy.admin.db.dao.SmsSendTaskDao;
import com.jy.admin.db.entity.SmsSendTaskEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * User: anonymous
 * Date: 2021-12-10
 * Time: 14:58:47.146
 */

@Repository
public class SmsSendTaskDaoImpl extends AbstractBaseMapper<SmsSendTaskEntity> implements SmsSendTaskDao {

    @Override
    public List<SmsSendTaskEntity> getListByStatus(Integer status) {

        Map<String, Object> params = new HashMap<>();
        params.put("status", status);
        return getSqlSession().selectList(this.getStatement("getListByStatus"), params);

    }
}